import { FILTER_ACTIVE } from '../constants/filter'

export default function filter(state = 'all', action) {
  if (action.type === FILTER_ACTIVE) {
    return action.active
  }
  return state
}
